package com.future.mayi.response;

import com.future.baselib.entity.BaseResponse;
import com.future.mayi.model.WalletHistoryModel;
import com.google.gson.reflect.TypeToken;
import com.future.mayi.app.App;
import com.future.mayi.model.WalletInModel;

import org.json.JSONException;

import java.util.List;

public class WalletLogResponse extends BaseResponse {

    public List<WalletInModel> wallets;
    public double money;
    public double frozen;
    public int not_cash;

    @Override
    public void parseInfo(String content) throws JSONException {
        WalletHistoryModel model = App.getGson().fromJson(content, WalletHistoryModel.class);
        if (model == null) return;
        money = model.getMoney();
        frozen = model.getFrozen();
        wallets = model.getList();
        not_cash = model.getNot_cash();
    }


}
